package com.aspose.cells;

import java.util.ArrayList;
import java.util.HashMap;

class zcdp {
   private Workbook b;
   private WorksheetCollection c;
   zbxz a;
   private zcda d;
   private ArrayList e;
   private ArrayList f;
   private ArrayList g;
   private ArrayList h;
   private ArrayList i;
   private ArrayList j;
   private int k;
   private int l;
   private byte[] m;
   private zoz n;

   zcdp(zcda var1) {
      this.d = var1;
      this.b = var1.a;
      this.c = this.b.getWorksheets();
      this.e = new ArrayList();
      this.f = new ArrayList();
      this.j = new ArrayList();
      this.h = new ArrayList();
      this.i = new ArrayList();
      this.g = new ArrayList();
      this.n = var1.b;
   }

   void a(zbxz var1) throws Exception {
      this.a = var1;
      this.g();
      this.a.b(0);
      ArrayList var2 = null;
      boolean var3 = false;

      while(true) {
         this.k = this.a.a();
         switch(this.k) {
         case 43:
            this.e();
            break;
         case 44:
            this.f();
            break;
         case 45:
            this.d();
            break;
         case 46:
            this.c();
            break;
         case 47:
            this.a(var2, var3);
            break;
         case 48:
            this.b();
            break;
         case 279:
            this.a.a(1L);
            this.a();
            return;
         case 507:
            this.m = var1.d();
            zbzl var4 = a(this.m, 0, (WorksheetCollection)this.c);
            this.c.getDxfs().b(var4.b);
            break;
         case 508:
            this.i();
            break;
         case 510:
            this.j();
            break;
         case 617:
            this.l = this.a.b();
            this.a.a((long)this.l);
            var2 = this.i;
            var3 = true;
            break;
         case 626:
            this.l = this.a.b();
            this.a.a((long)this.l);
            var2 = this.h;
            var3 = false;
            break;
         default:
            this.l = this.a.b();
            this.a.a((long)this.l);
         }
      }
   }

   void a() {
      this.n.c(new HashMap());

      for(int var1 = 0; var1 < this.e.size(); ++var1) {
         Font var2 = (Font)this.e.get(var1);
         this.c.a(var2);
         this.n.d().put(var1, var2.j());
      }

      zbvx var8 = this.c.B();
      HashMap var9 = new HashMap(this.h.size());

      int var3;
      zcam var4;
      for(var3 = 0; var3 < this.h.size(); ++var3) {
         var4 = (zcam)this.h.get(var3);
         Style var5 = new Style(this.c);
         var5.a((byte)0);
         this.a(var4, var5, false);
         var5.a(false);
         var5.a((int)-1);
         znr var6 = this.a(var3);
         String var7 = null;
         if (var3 == 0) {
            var7 = "Normal";
         } else if (var6 != null) {
            var7 = var6.a;
            if (var7.equals("Default")) {
               var7 = "Normal";
            }
         }

         if (var7 != null) {
            var5.a(var7);
            if (var7.equals("Normal")) {
               var5.a((byte)-4);
               var8.a(0, var5);
               var9.put(var3, 0);
            } else {
               var9.put(var3, this.c.B().e(var5));
            }
         } else {
            var9.put(var3, this.c.a(var5));
         }
      }

      this.d.b.d = new HashMap(this.i.size());

      for(var3 = 0; var3 < this.i.size(); ++var3) {
         var4 = (zcam)this.i.get(var3);
         int var10 = 0;
         if (var4.q > 0) {
            var10 = (Integer)var9.get(Integer.valueOf(var4.q));
         }

         Style var11 = new Style(this.c);
         var11.a((byte)0);
         var11.a(true);
         var11.a(var10);
         this.a(var4, var11, true);
         if (var3 == 0) {
            var8.a(15, var11);
            this.c.b(var11);
            var11.a((int)0);
            this.d.b.d.put(0, 15);
         } else {
            int var12 = var8.d(var11);
            this.d.b.d.put(var3, var12);
         }
      }

      this.h();
   }

   private void h() {
      WorksheetCollection var1 = this.b.getWorksheets();
      var1.K();
      int var2 = ((var1.I() * 8 + var1.J()) / 8 + 1) * 8;
      double var3 = (double)(var2 - var1.J()) / (double)var1.I();

      for(int var5 = 0; var5 < var1.getCount(); ++var5) {
         Cells var6 = var1.get(var5).getCells();
         var6.getColumns().a(var3);
      }

   }

   void a(zcam var1, Style var2, boolean var3) {
      if (var3 || var1.x) {
         if (var1.g > 0) {
            var2.setIndentLevel(var1.g);
         }

         var2.setHorizontalAlignment(var1.c);
         var2.setVerticalAlignment(var1.d);
         var2.setRotationAngle(var1.e);
         var2.setTextWrapped(var1.f);
         var2.setShrinkToFit(var1.h);
         var2.setTextDirection(var1.s);
      }

      var2.e(var1.x);
      if (var3 || var1.w) {
         zcao var4 = (zcao)this.g.get(var1.p);
         if (var4.b != null) {
            this.a(var2.getBorders().getByBorderType(1), var4.b);
         }

         if (var4.d != null) {
            this.a(var2.getBorders().getByBorderType(2), var4.d);
         }

         if (var4.a != null) {
            this.a(var2.getBorders().getByBorderType(4), var4.a);
         }

         if (var4.c != null) {
            this.a(var2.getBorders().getByBorderType(8), var4.c);
         }

         if (var4.e != null) {
            if (var4.f) {
               this.a(var2.getBorders().getByBorderType(16), var4.e);
            }

            if (var4.g) {
               this.a(var2.getBorders().getByBorderType(32), var4.e);
            }
         }
      }

      var2.f(var1.w);
      if (var3 || var1.v) {
         zcap var5 = (zcap)this.f.get(var1.o);
         if (var5.d != null) {
            znq.a(var5.d, var2);
         } else {
            var2.setPattern(var5.c);
            var2.b.f(var5.a);
            var2.a.f(var5.b);
         }
      }

      var2.g(var1.v);
      if (var3 || var1.u) {
         var2.getFont().c((Font)((Font)this.e.get(var1.n)));
      }

      var2.d(var1.u);
      if (var3 || var1.t) {
         var2.setCustom(this.b.getWorksheets().h(var1.m));
         var2.d(var1.m);
      }

      var2.c(var1.t);
      if (var3 || var1.y) {
         var2.setFormulaHidden(var1.j);
         var2.setLocked(var1.i);
      }

      var2.h(var1.y);
   }

   private void a(Border var1, zcan var2) {
      var1.a.f(var2.a);
      var1.setLineStyle(var2.b);
   }

   private void i() throws Exception {
      TableStyleCollection var1 = this.c.getTableStyles();
      this.m = this.d.a(this.a);
      byte var2 = 4;
      var1.a(zcch.d(this.m, var2));
      int var3;
      if (var1.a() != null) {
         var3 = var2 + 4 + var1.a().length() * 2;
      } else {
         var3 = var2 + 4;
      }

      var1.b(zcch.d(this.m, var3));
   }

   private void j() throws Exception {
      this.m = this.d.a(this.a);
      TableStyle var1 = null;
      String var2 = zcch.d(this.m, 6);
      int var3 = this.c.getTableStyles().c(var2);
      var1 = this.c.getTableStyles().get(var3);
      var1.a((this.m[0] & 255 & 2) == 1);
      var1.b((this.m[0] & 255 & 4) == 1);

      while(true) {
         this.k = this.a.a();
         switch(this.k) {
         case 511:
            this.a.a(1L);
            return;
         case 512:
            this.a(var1);
            break;
         default:
            this.l = this.a.b();
            this.a.a((long)this.l);
         }
      }
   }

   private void a(TableStyle var1) {
      this.m = this.d.a(this.a);
      if (var1.getTableStyleElements() == null) {
         var1.a(new TableStyleElementCollection(var1));
      }

      int var2 = com.aspose.cells.b.a.zc.a(this.m, 0);
      int var3 = com.aspose.cells.b.a.zc.a(this.m, 4);
      int var4 = com.aspose.cells.b.a.zc.a(this.m, 8);

      try {
         TableStyleElement var5 = new TableStyleElement(var1.getTableStyleElements(), zcee.F(var2));
         var5.setSize(var3);
         var5.a = var4;
         var1.getTableStyleElements().a(var5);
      } catch (Exception var6) {
         ;
      }

   }

   static zbzl a(byte[] var0, int var1, WorksheetCollection var2) throws Exception {
      zbzl var3 = new zbzl(var2);
      boolean var4 = false;
      boolean var5 = false;
      var3.a = (var0[var1 + 1] & 255 & 128) != 0;
      var1 += 4;
      short var6 = com.aspose.cells.b.a.zc.b(var0, var1);
      var1 += 2;
      Border var9 = null;
      boolean var10 = false;
      znq var11 = new znq();
      ArrayList var12 = new ArrayList(4);
      ArrayList var13 = new ArrayList(4);

      int var14;
      int var15;
      for(var14 = 0; var14 < var6; ++var14) {
         short var8;
         short var7 = com.aspose.cells.b.a.zc.b(var0, var1);
         var8 = com.aspose.cells.b.a.zc.b(var0, var1 + 2);
         boolean[] var19;
         label115:
         switch(var7) {
         case 0:
            var3.b.setPattern(zcee.p(var0[var1 + 4] & 255));
            break;
         case 1:
            var19 = new boolean[]{var10};
            var3.b.b = b(var0, var1 + 4, var19);
            var10 = var19[0];
            var3.b.b(34);
            break;
         case 2:
            var19 = new boolean[]{var10};
            var3.b.a = b(var0, var1 + 4, var19);
            var10 = var19[0];
            var3.b.b(35);
            break;
         case 3:
            var15 = com.aspose.cells.b.a.zc.a(var0, var1 + 4);
            if (var15 == 0) {
               var11.e = "linear";
            } else if (var15 == 1) {
               var11.e = "path";
            }

            var11.f = (int)com.aspose.cells.b.a.zc.f(var0, var1 + 8);
            var11.a = com.aspose.cells.b.a.zc.f(var0, var1 + 16);
            var11.b = com.aspose.cells.b.a.zc.f(var0, var1 + 24);
            var11.c = com.aspose.cells.b.a.zc.f(var0, var1 + 32);
            var11.d = com.aspose.cells.b.a.zc.f(var0, var1 + 40);
            var3.b.b(35);
            break;
         case 4:
            double var20 = com.aspose.cells.b.a.zc.f(var0, var1 + 6);
            boolean[] var17 = new boolean[]{var10};
            zakp var18 = b(var0, var1 + 14, var17);
            var10 = var17[0];
            com.aspose.cells.b.a.a.ze.a(var12, (Object)var20);
            com.aspose.cells.b.a.a.ze.a(var13, (Object)var18);
            break;
         case 5:
            var19 = new boolean[]{var10};
            var3.a().b = b(var0, var1 + 4, var19);
            var10 = var19[0];
            var3.b.b(16);
            break;
         case 6:
            a(var3.b.getBorders().getByBorderType(4), var0, var1 + 4);
            break;
         case 7:
            a(var3.b.getBorders().getByBorderType(8), var0, var1 + 4);
            break;
         case 8:
            a(var3.b.getBorders().getByBorderType(1), var0, var1 + 4);
            break;
         case 9:
            a(var3.b.getBorders().getByBorderType(2), var0, var1 + 4);
            break;
         case 10:
            if (var4) {
               var9 = var3.b.getBorders().getByBorderType(32);
               a(var9, var0, var1 + 4);
            } else if (var5) {
               a(var3.b.getBorders().getByBorderType(16), var0, var1 + 4);
            }
            break;
         case 11:
            a(var3.b.getBorders().getByBorderType(64), var0, var1 + 4);
            break;
         case 12:
            a(var3.b.getBorders().getByBorderType(128), var0, var1 + 4);
            break;
         case 13:
            var4 = var0[var1 + 4] == 1;
            break;
         case 14:
            var5 = var0[var1 + 4] == 1;
            break;
         case 15:
            var3.b.setHorizontalAlignment(zcee.g(var0[var1 + 4] & 255));
            break;
         case 16:
            var3.b.setVerticalAlignment(zcee.e(var0[var1 + 4] & 255));
            break;
         case 17:
            var3.b.setRotationAngle(var0[var1 + 4]);
            break;
         case 18:
            var3.b.setIndentLevel(com.aspose.cells.b.a.zc.b(var0, var1 + 4));
            break;
         case 19:
            switch(var0[var1 + 4]) {
            case 1:
               var3.b.setTextDirection(1);
               break label115;
            case 2:
               var3.b.setTextDirection(2);
               break label115;
            default:
               var3.b.setTextDirection(0);
               break label115;
            }
         case 20:
            var3.b.setTextWrapped(var0[var1 + 4] != 0);
         case 21:
         case 23:
         case 30:
         case 31:
         case 32:
         case 33:
         case 39:
         case 40:
         case 42:
         default:
            break;
         case 22:
            var3.b.setShrinkToFit(var0[var1 + 4] != 0);
            break;
         case 24:
            var3.a().a(zcch.e(var0, var1 + 4), 0);
            break;
         case 25:
            var3.a().b(com.aspose.cells.b.a.zc.b(var0, var1 + 4));
            break;
         case 26:
            var3.a().setUnderline(zcee.c((int)com.aspose.cells.b.a.zc.b(var0, var1 + 4)));
            break;
         case 27:
            switch(var0[var1 + 4]) {
            case 1:
               var3.a().setSuperscript(true);
               break label115;
            case 2:
               var3.a().setSubscript(true);
            default:
               break label115;
            }
         case 28:
            var3.a().setItalic(var0[var1 + 4] != 0);
            break;
         case 29:
            var3.a().setStrikeout(var0[var1 + 4] != 0);
            break;
         case 34:
            var3.a().setCharset(var0[var1 + 4]);
            break;
         case 35:
            var3.a().a(var0[var1 + 4]);
            break;
         case 36:
            var3.a().c(com.aspose.cells.b.a.zc.b(var0, var1 + 4));
            break;
         case 37:
            var3.a().a(zcee.d(var0[var1 + 4]));
            break;
         case 38:
            var15 = var1 + 4;
            var3.b.setCustom(zcch.e(var0, var15));
            break;
         case 41:
            var3.b.d(com.aspose.cells.b.a.zc.b(var0, var1 + 4));
            break;
         case 43:
            var3.b.setFormulaHidden(var0[var1 + 4] != 0);
            break;
         case 44:
            var3.b.setLocked(var0[var1 + 4] != 0);
         }

         var1 += var8;
      }

      var14 = var12.size();
      if (var14 != 0) {
         var11.g = new double[var14];
         var11.h = new zakp[var14];

         for(var15 = 0; var15 < var14; ++var15) {
            var11.g[var15] = (Double)var12.get(var15);
            var11.h[var15] = (zakp)var13.get(var15);
         }

         znq.a(var11, var3.b);
      }

      return var3;
   }

   void a(ArrayList var1, boolean var2) {
      zcam var3 = new zcam();
      com.aspose.cells.b.a.a.ze.a(var1, (Object)var3);
      this.m = this.d.a(this.a);
      var3.q = com.aspose.cells.b.a.zc.b(this.m, 0);
      byte var4 = 2;
      var3.m = com.aspose.cells.b.a.zc.b(this.m, var4);
      int var6 = var4 + 2;
      var3.n = com.aspose.cells.b.a.zc.b(this.m, var6);
      var6 += 2;
      var3.o = com.aspose.cells.b.a.zc.b(this.m, var6);
      var6 += 2;
      var3.p = com.aspose.cells.b.a.zc.b(this.m, var6);
      var6 += 2;
      var3.e = this.m[var6++] & 255;
      if (var3.e > 90) {
         var3.e = 90 - var3.e;
      }

      var3.g = this.m[var6++] & 255;
      byte var5 = (byte)(this.m[var6] & 255 & 7);
      var3.c = zcee.g(var5 & 255);
      var5 = (byte)((this.m[var6] & 255 & 56) >> 3);
      var3.d = zcee.e(var5 & 255);
      var3.f = (this.m[var6] & 255 & 64) != 0;
      ++var6;
      var3.h = (this.m[var6] & 255 & 1) != 0;
      var5 = (byte)((this.m[var6] & 255 & 192) >> 2);
      switch(var5) {
      case 1:
         var3.s = 1;
         break;
      case 2:
         var3.s = 2;
         break;
      default:
         var3.s = 0;
      }

      var3.i = (this.m[var6] & 255 & 16) != 0;
      var3.j = (this.m[var6] & 255 & 32) != 0;
      var3.k = (this.m[var6] & 255 & 64) != 0;
      var3.l = (this.m[var6] & 255 & 128) != 0;
      ++var6;
      if (var2) {
         var3.t = (this.m[var6] & 255 & 1) != 0;
         var3.u = (this.m[var6] & 255 & 2) != 0;
         var3.x = (this.m[var6] & 255 & 4) != 0;
         var3.w = (this.m[var6] & 255 & 8) != 0;
         var3.v = (this.m[var6] & 255 & 16) != 0;
         var3.y = (this.m[var6] & 255 & 32) != 0;
      } else {
         var3.t = (this.m[var6] & 255 & 1) == 0;
         var3.u = (this.m[var6] & 255 & 2) == 0;
         var3.x = (this.m[var6] & 255 & 4) == 0;
         var3.w = (this.m[var6] & 255 & 8) == 0;
         var3.v = (this.m[var6] & 255 & 16) == 0;
         var3.y = (this.m[var6] & 255 & 32) == 0;
      }

   }

   znr a(int var1) {
      for(int var2 = 0; var2 < this.j.size(); ++var2) {
         znr var3 = (znr)this.j.get(var2);
         if (var3.b == var1) {
            return var3;
         }
      }

      return null;
   }

   void b() throws Exception {
      znr var1 = new znr();
      com.aspose.cells.b.a.a.ze.a(this.j, (Object)var1);
      this.m = this.d.a(this.a);
      var1.b = com.aspose.cells.b.a.zc.a(this.m, 0);
      if ((this.m[4] & 255 & 1) != 0) {
         var1.a = zcee.a(this.m[6] & 255, this.m[7] & 255);
      }

      if (var1.a == null || "".equals(var1.a)) {
         var1.a = zcch.d(this.m, 8);
      }

   }

   void c() {
      this.m = this.d.a(this.a);
      zcao var1 = new zcao();
      var1.f = (this.m[0] & 255 & 1) != 0;
      var1.g = (this.m[0] & 255 & 2) != 0;
      byte var2 = 1;
      var1.a = this.a(this.m, var2);
      int var3 = var2 + 10;
      var1.c = this.a(this.m, var3);
      var3 += 10;
      var1.b = this.a(this.m, var3);
      var3 += 10;
      var1.d = this.a(this.m, var3);
      var3 += 10;
      if (var1.g || var1.f) {
         var1.e = this.a(this.m, var3);
         var3 += 10;
      }

      com.aspose.cells.b.a.a.ze.a(this.g, (Object)var1);
   }

   zcan a(byte[] var1, int var2) {
      zcan var3 = new zcan();
      var3.b = zcee.m(this.m[var2] & 255);
      var2 += 2;
      boolean var4 = false;
      boolean[] var5 = new boolean[]{var4};
      var3.a = a(var1, var2, var5);
      var4 = var5[0];
      return var3;
   }

   void d() {
      this.m = this.d.a(this.a);
      zcap var1 = new zcap();
      com.aspose.cells.b.a.a.ze.a(this.f, (Object)var1);
      var1.c = zcee.p(this.m[0] & 255);
      boolean var2 = false;
      boolean[] var3 = new boolean[]{var2};
      var1.a = a(this.m, 4, (boolean[])var3);
      var2 = var3[0];
      var3 = new boolean[]{var2};
      var1.b = a(this.m, 12, (boolean[])var3);
      var2 = var3[0];
      if (this.m[0] == 40) {
         znq var12 = new znq();
         byte var4 = 20;
         int var5 = com.aspose.cells.b.a.zc.a(this.m, var4);
         if (var5 == 0) {
            var12.e = "linear";
         } else if (var5 == 1) {
            var12.e = "path";
         }

         int var13 = var4 + 4;
         var12.f = (int)com.aspose.cells.b.a.zc.f(this.m, var13);
         var13 += 8;
         var12.a = com.aspose.cells.b.a.zc.f(this.m, var13);
         var13 += 8;
         var12.b = com.aspose.cells.b.a.zc.f(this.m, var13);
         var13 += 8;
         var12.c = com.aspose.cells.b.a.zc.f(this.m, var13);
         var13 += 8;
         var12.d = com.aspose.cells.b.a.zc.f(this.m, var13);
         var13 += 8;
         int var6 = com.aspose.cells.b.a.zc.a(this.m, var13);
         var12.h = new zakp[var6];
         var12.g = new double[var6];
         var13 += 4;

         for(int var7 = 0; var7 < var6; ++var7) {
            boolean[] var8 = new boolean[]{var2};
            zakp var9 = b(this.m, var13, var8);
            var2 = var8[0];
            var13 += 8;
            double var10 = com.aspose.cells.b.a.zc.f(this.m, var13);
            var13 += 8;
            var12.h[var7] = var9;
            var12.g[var7] = var10;
         }

         var1.d = var12;
      }

   }

   void e() throws Exception {
      this.m = this.d.a(this.a);
      Font var1 = new Font(this.c, (Object)null, false);
      com.aspose.cells.b.a.a.ze.a(this.e, (Object)var1);
      byte var2 = 0;
      var1.c(com.aspose.cells.b.a.zc.b(this.m, var2));
      int var7 = var2 + 2;
      var1.setItalic((this.m[var7] & 255 & 2) != 0);
      var1.setStrikeout((this.m[var7] & 255 & 8) != 0);
      var7 += 2;
      var1.b(com.aspose.cells.b.a.zc.b(this.m, var7));
      var7 += 2;
      switch(this.m[var7]) {
      case 1:
         var1.setSuperscript(true);
         break;
      case 2:
         var1.setSubscript(true);
      }

      var7 += 2;
      var1.setUnderline(zcee.c(this.m[var7] & 255));
      ++var7;
      var1.a(this.m[var7++]);
      var1.setCharset(this.m[var7++]);
      ++var7;
      boolean var3 = false;
      boolean[] var4 = new boolean[]{var3};
      var1.b = a(this.m, var7, var4);
      var3 = var4[0];
      var7 += 8;
      int var5 = zcee.c(this.m[var7]);
      ++var7;
      int[] var6 = new int[]{var7};
      var1.a(zcch.a(this.m, var6), var5);
      var7 = var6[0];
   }

   void f() throws Exception {
      this.m = this.d.a(this.a);
      int var1 = com.aspose.cells.b.a.zc.e(this.m, 0);
      byte var2 = 2;
      int[] var3 = new int[]{var2};
      String var4 = zcch.a(this.m, var3);
      int var6 = var3[0];
      zxw var5 = new zxw();
      var5.a(var4, var1);
      if ((this.c.w() & '\uffff') < (var1 & '\uffff')) {
         this.c.e(var1);
      }

      com.aspose.cells.b.a.a.ze.a(this.c.A(), (Object)var5);
   }

   void g() {
      int var1 = 0;
      boolean var2 = false;

      while(true) {
         this.k = this.a.a();
         switch(this.k) {
         case 279:
         case 474:
            this.a.a(1L);
            return;
         case 475:
            this.m = this.d.a(this.a);
            int var3 = com.aspose.cells.b.a.zc.a(this.m, 0);
            if (var1 < 8) {
               ++var1;
            } else {
               this.b.changePalette(Color.fromArgb(this.m[3] & 255, this.m[0] & 255, this.m[1] & 255, this.m[2] & 255), var1 - 8);
               ++var1;
            }
            break;
         default:
            this.l = this.a.b();
            this.a.a((long)this.l);
         }
      }
   }

   static zakp a(byte[] var0, int var1, boolean[] var2) {
      var2[0] = false;
      zakp var3 = new zakp(false);
      var3.a((double)com.aspose.cells.b.a.zc.b(var0, var1 + 2) / 32767.0D);
      int var4 = (var0[var1] & 255 & 254) >> 1;
      switch(var4) {
      case 0:
         var3.a(true);
         break;
      case 1:
         if ((var0[var1 + 1] & 255) >= 64) {
            var3.a(true);
         } else {
            var3.a(3, var0[var1 + 1] & 255);
         }
         break;
      case 2:
         var1 += 4;
         var3.a(2, ((var0[var1] & 255) << 16) + ((var0[var1 + 1] & 255) << 8) + (var0[var1 + 2] & 255));
         break;
      case 3:
         if ((var0[var1 + 1] & 255) >= 64) {
            var3.a(true);
         } else {
            var3.a(4, var0[var1 + 1] & 255);
         }
         break;
      default:
         var3.a(true);
         var2[0] = true;
      }

      return var3;
   }

   static void a(Border var0, byte[] var1, int var2) {
      boolean var3 = false;
      boolean[] var4 = new boolean[]{var3};
      var0.a = b(var1, var2, var4);
      var3 = var4[0];
      var2 += 8;
      var0.setLineStyle(zcee.m(var1[var2] & 255));
   }

   static zakp b(byte[] var0, int var1, boolean[] var2) {
      var2[0] = false;
      zakp var3 = new zakp(false);
      var3.a((double)com.aspose.cells.b.a.zc.b(var0, var1 + 2) / 32767.0D);
      int var4 = (var0[var1] & 255) >> 1;
      switch(var4) {
      case 0:
         var3.a(true);
         break;
      case 1:
         if ((var0[var1 + 1] & 255) >= 64) {
            var3.a(true);
         } else {
            var3.a(3, var0[var1 + 1] & 255);
         }
         break;
      case 2:
         var1 += 4;
         var3.a(2, ((var0[var1] & 255) << 16) + ((var0[var1 + 1] & 255) << 8) + (var0[var1 + 2] & 255));
         break;
      case 3:
         if ((var0[var1 + 1] & 255) >= 64) {
            var3.a(true);
         } else {
            var3.a(4, var0[var1 + 1] & 255);
         }
         break;
      case 4:
         var2[0] = true;
         break;
      default:
         var3.a(true);
      }

      return var3;
   }
}
